import Vue from 'vue'
import Vuex from 'vuex'
import createLogger from 'vuex/dist/logger'
Vue.use(Vuex)

export default new Vuex.Store({
  state: {
			hTitle:"猫眼电影",
			hiddenFoot:false,
			movieTitle:"",
			movieSrc:""
  },
  mutations: {
			setHTitle(state,payload){
				state.hTitle=payload.hTitle;
			},
			setHiddenFoot(state,payload){
				state.hiddenFoot=payload.hiddenFoot
			},
			setMovieDetails(state,payload){
				state.movieTitle=payload.movieTitle;
				state.movieSrc=payload.movieSrc;
				
			}
			
  },
  actions: {

  },
   plugins: [createLogger()]
})
